package com.kingyea.app.market.area.service;

import com.kingyea.app.market.area.bean.Area;

import java.util.List;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description Area 接口
 * @date Created in 2018-03-25 21:47:16
 */
public interface AreaService {

    /**
     * 通过ID查找对象
     *
     * @param code
     * @return
     */
    Area getById(Long code) throws Exception;

    /**
     * 列表
     *
     * @param area
     * @return
     */
    List<Area> list(Area area) throws Exception;

    /**
     * 删除
     *
     * @param code
     * @return
     */
    int deleteById(Long code) throws Exception;

    /**
     * 添加
     *
     * @param area
     * @return
     */
    Area save(Area area) throws Exception;

    /**
     * 更新
     *
     * @param area
     * @return
     */
    Area update(Area area) throws Exception;

    Integer size();
}
